//
//  RequestManager+GRConfirmOrder.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/7/16.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "RequestManager+GRConfirmOrder.h"

@implementation RequestManager (GRConfirmOrder)
+(void)getConfirmOrderFirstInfo:(NSDictionary *)dic ComplectionHander:(RequestBlock)complectinHander{
    NSString * url = [NSString stringWithFormat:@"%@order/v1/analyOrder",GRiceAPI];
    [self MembershipRequestWithURLString:url Method:GR_POST Paramers:dic completionHandler:complectinHander ];
}

+(void)getPayDetailInfo:(NSDictionary *)dic ComplectionHander:(RequestBlock)complectinHander{
    NSString *url = [NSString stringWithFormat:@"%@order/v1/placeOrder",GRiceAPI];
    [self MembershipRequestWithURLString:url Method:GR_POST Paramers:dic completionHandler:complectinHander];
}

+(void)grPayOrder:(NSDictionary *)dic ComplectionHander:(RequestBlock)complectinHander{
    NSString *url = [NSString stringWithFormat:@"%@pay/v1/applyPay",GRiceAPI];
    [self MembershipRequestWithURLString:url Method:GR_POST Paramers:dic completionHandler:complectinHander];
}

+(void)getOrderPayInfo:(NSInteger )orderId ComplectionHander:(RequestBlock)complectinHander{
    NSString * url = [NSString stringWithFormat:@"%@pay/v1/readyPay/%ld",GRiceAPI,orderId];
    [self MembershipRequestWithURLString:url Method:GR_GET Paramers:nil completionHandler:complectinHander];
}
@end
